package com.erp.gather.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.gather.api.domain.ErpSellerCollectProduct;
import com.erp.gather.domain.bo.ErpSellerCollectProductBo;
import com.erp.gather.domain.vo.ErpSellerCollectProductVo;
import com.ruoyi.common.core.annotation.DataColumn;
import com.ruoyi.common.core.annotation.DataPermission;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 个人采集商品Mapper接口
 *
 * @author erp
 * @date 2023-06-20
 */
public interface ErpSellerCollectProductMapper extends BaseMapperPlus<ErpSellerCollectProductMapper, ErpSellerCollectProduct, ErpSellerCollectProductVo> {

	@Override
	@DataPermission({ @DataColumn(key = "userName", value = "collect_user_id") })
	<P extends IPage<ErpSellerCollectProduct>> P selectPage(P page,
															@Param(Constants.WRAPPER) Wrapper<ErpSellerCollectProduct> queryWrapper);

	List<ErpSellerCollectProduct> selectGroundingPro();
	
	List<ErpSellerCollectProduct> selectCopyToPublicPro();

	@DataPermission({ @DataColumn(key = "userName", value = "collect_user_id") })
	Page<ErpSellerCollectProductVo> selectNewVoList(@Param("page")Page<ErpSellerCollectProduct> page, @Param("bo") ErpSellerCollectProductBo bo);
}
